/*
|--------------------------------------------------------------------------
| Routes file
|--------------------------------------------------------------------------
|
| The routes file is used for defining the HTTP routes.
|
*/

import router from '@adonisjs/core/services/router'
import '#app/routes/macro'
import '#app/routes/basic'
import '#app/routes/stock'

const IndexController = () => import('#controllers/index_controller')
const AuthController = () => import('#controllers/auth_controller')
const MemberController = () => import('#controllers/member_controller')

router.get('/', [IndexController, 'index'])
router.get('/export', [IndexController, 'export'])

router.post('auth/login', [AuthController, 'login'])
router.get('auth/logout', [AuthController, 'logout'])

router.curd('member', MemberController)
